package se.wangs.visitor.impl;

import se.wangs.visitor.Visitor;

import java.time.LocalDate;

/**
 * * -- coding: UTF-8 -- *
 *
 * @author wangs
 * @date 2023/12/18 9:52
 * @description 折扣
 */
public class DiscountVisitor implements Visitor {

    private LocalDate billDate;

    public DiscountVisitor(LocalDate billDate) {
        this.billDate = billDate;
    }

    @Override
    public void visit(Candy candy) {
        System.out.println("糖果打折...");
    }

    @Override
    public void visit(Fruit fruit) {
        System.out.println("水果打折...");
    }

    @Override
    public void visit(Wine wine) {
        System.out.println("酒水原价销售...");
    }
}
